import { getCourse } from "@/type/course"
import request from "@/utils/request"

//查询课程列表
export const getCourses=(data:getCourse)=>{
    return request({
       url:'/courses',
       method:'get',
       params: data
    })
}

//查询课程详情
export const getCourseDetail=(data:getCourse,id:string)=>{
    return request({
        url:`/courses/${id}`,
        method:'get',
        params:data
    })
}